import DList from "@/components/dlist";
import mealPopup from "./components/meal_popup";
export default {
  data() {
    return {
      meal_show: false,
      currentPackage: {}
    };
  },
  mounted() {
    this.getCurrentPackage();
  },
  methods: {
    goMealrecord() {
      this.$router.push(
        this.fun.getUrl("anyPackageRecord", {})
      );
    },
    // 获取分类
    getCurrentPackage() {
      $http.get("plugin.be-within-call.frontend.enterprise.current-package", { }).then(({ data , result , msg }) => {
        if (result) {
          this.currentPackage = data;
        } else {
          this.$toast(msg);
        }
      });
    },
    optionPackage(op) {
      this.currentPackage = op[0];
      this.meal_show = false;
    },
  },
  components: { DList ,mealPopup }
};
